package com.zretc.service.impl;

import com.zretc.dao.AddressMapper;
import com.zretc.entity.Address;
import com.zretc.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WHP
 */
@Service
public class AddressImpl implements AddressService {

    @Autowired
    private AddressMapper addressMapper;
    @Override
    public int saveAddress(Address address) {
        return addressMapper.insertAddress(address);
    }

    @Override
    public int deleteAddressbyAddressId(Integer addressId) {
        return addressMapper.deleteAddress(addressId);
    }
}
